Pregunta de entrevista de Accenture

Write a code to implement a binary search from a given list.