Meta Interview Question

Arrays search, bit manipulation, permutations