HSBC interview question

Problem solving questions.