HSBC interview question

everything is pretty cool