Trainman Interview Question

Binary search Square root without using inbuilt function