Sets

A bag is a set in which duplicate elements are allowed. An ordered bag is a list that we use in …