Question d’entretien chez Microsoft

I was asked to implement the ordinary binary search algorithm.