Java Playground - coins problem on spoj: Online Interpreter, Compiler & Editor | Sololearn