Newgen Software Interview Question

binary search