Palo Alto Networks Interview Question

Please implement a binary search algorithm