HSBC interview question

Coding knowledge, and case study