BlackRock Interview Question

Write a binary search function