Pergunta de entrevista da empresa PRISM+

Asked to demonstrate binary search