Pregunta de entrevista de Qualcomm

Write a program for binary search?