HSBC interview question

nothing really tricky