Pregunta de entrevista de Meta

Some question that involved binary search