Question d’entretien chez Anonymous

Find the next greatest element in array