HSBC Interview Question

Coding knowledge, and case study