HSBC Interview Question

Was straightforward