string permutations iterative solution

welcome to shbcf.ru