Starbucks Interview Question

Find square root of a no. using binary search.