Domanda di colloquio di ABC

about binary search and asked to implement binary search