Question d’entretien chez Amazon

Coding question that required binary search