Tripadvisor interview question

How would you implement a bit vector data structure? Optimizing for memory?