You do not have the supplement that is given, however, the program is of a Bag ADT. Please try to create the method remove(T item, int n) as described below. You know the code is not supplied but please try to create the method to the best of your ability with the information given.
Consider the partial Java interface for the BagCQS ADT given in the Supplement. Note that this interface conforms to the principle of Command Query Separation.
It contains a new method remove(T item, int n) that removes n occurrences of the specified item from the Bag. The method will not work correctly unless there are at least n occurrences of the item in the Bag. Write a pre-condition and post-condition for this method.