Question d’entretien chez Amazon

It was a leetcode medium binary search question.