Pregunta de entrevista de Snapdeal

Find all permutation and combination of a string.