HSBC interview question

About coding