Zinnia Interview Question

one Binary search medium Q