Solution

The homework solution