Python Playground - string permutation challenge: Online Interpreter, Compiler & Editor | Sololearn