RedMane Technology Interview Question

HOw to build a binary search algorithm.