Sutrix Group interview question

Thinking logic, Core Knowledge and Solve Problem