Subarray Distinct Values Codeforces Contest