H E B interview question

How to do a binary search algorithm?