Solution of the given problem.

Solution Of The Given Problem class=