SAP interview question

Generate all possible strings permutations