Pregunta de entrevista de Microsoft

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