HSBC interview question

Was straightforward