Accenture interview question

Simple binary search question