Meta interview question

Arrays search, bit manipulation, permutations