Meta interview question

Permutation problem, algorithmic phone screen.