HSBC interview question

Few technical questions