Citi interview question

Data Structures