ASSIGNMENT:

OUTPUT: