Multiset
This is a Set that is also ordered, the benefits is that you can store duplicates.
In the for loop, it will print x multiple times.
MATH239
Definition 1.8. Let and be integers. A multiset of size with elements of types is a sequence of nonnegative integers such that
Theorem 1.9. For any and , the number of -element multisets with elements of types is