Capgemini interview question

write a java program for binary search