Google interview question

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