HSBC Interview Question

About coding