Question d’entretien chez Apolis

They asked me to solve a simple java array challenge