Count Distinct Element Leetcode Two Robots