HSBC interview question

Data structures