Pregunta de entrevista de CreatioSoft

Print all the permutation of a string?