Infosys interview question

Write a program to execute Binary Search.