Minimum Common Value Leetcode Two Robots Hackerrank