Question d’entretien chez SquareBoat

finding the max and second max element in an array