Intellect Design Arena interview question

Binary search code. and find error in it