iCubes interview question

Binary Search Algorithm, PHP basics