Cognizant Interview Question

Explain binary search in java