Visier interview question

Binary search