Program 2

Solution