Sumo Logic interview question

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