Starbucks interview question

Find square root of a no. using binary search.