Question d’entretien chez Wipro

Solving a Array problem and get the result