Visy interview question

How to solve a specific problem