Java Playground - Swapping consecutive letters: Online Interpreter, Compiler & Editor | Sololearn