Question d’entretien chez Navjoy

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