Java Playground - heap's algorithm (recursive example): Online Interpreter, Compiler & Editor | Sololearn