CGI interview question

4.Write a Program For Binary Search.