GlobalLogic Interview Question

Write an alogrithm of binary search