Is your Binary Search Bug Free?

Bug free Binary search algorithm
Source: Codementor