Pregunta de entrevista de Google

write a binary search code to search through a sorted array