Backblaze interview question

Implement binary search in java