Subarray Distinct Values Codeforces Practice