Citi interview question

Data Structure based coding interview