Google Interview Question

Some question about removing from an array and another question about bitmasks