My solution.

My version of the solution.