BitTitan interview question

One Data Structures and Algorithm Question