Mobica interview question

How would you implement a binary search algorithm?