Pergunta de entrevista da empresa Snapdeal

Find all permutation and combination of a string.