Parallel Binary Search Codeforces Problem