Question d’entretien chez Amazon

Solve array questions on a specific problem given