Instructions:

Code:

Code Output: