Maveric Systems Interview Question

Write logic for Binary Search