UC Davis Interview Question

Leetcode problem based on Binary Search