Google interview question

Using bits instead of boolean array.