explain the solution ​

Explain The Solution class=