Complete answer for question C10_6_SampleForInfiniteSetTest