Mobica Interview Question

How would you implement a binary search algorithm?