String Permutation(LintCode 211):

Problem