Ruby Playground - Java code for question #4: Online Interpreter, Compiler & Editor | Sololearn