String permutation not working

Printable View