HSBC interview question

The math quiz