HSBC interview question

Based on data structures and your project