Palo Alto Networks interview question

Please implement a binary search algorithm