Gartner interview question

Binary search and system design