Cognizant Interview Question

binary search find an element in array