Navjoy interview question

Explain the given task. How to approach the problem and solve it.