Oracle interview question

Code a binary search solution