HSBC Interview Question

Based on data structures and your project