Meta Interview Question

Permutations , a leetcode medium