Question d’entretien chez Microsoft

Create a function that does a binary search through a sorted array of integers.