Binary Search Problem Leetcode Two Robots