Binary Search Problems Codechef