The challenge

The solution