HSBC Interview Question

2 logical thinking to judge my ability to solve problem.