CGI interview question

linear search and binary search