backtracking example for string permutation