Question d’entretien chez Meta

Find peak element with binary search