Pregunta de entrevista de Sumo Logic

Find all permutations of "needle" string in "haystack" string