Mark As Completed Discussion

The entire method is shown in the figure below:

Explained Solution