Backblaze Interview Question

Implement binary search in java