1852: Distinct Numbers in Each Subarray

Problem Statement