Hi Simon, congratulations on completing the task as written.
Take another look at the code with the eyes of a code reviewer. Ask yourself how you might improve or refactor the code base while introducing the new functionality. If you do make improvements note down what the changes are and how they make the code better, but keep them to yourself for now.
Next week when I publish my solution I plan to have a discussion about the different approaches people took.
Thank you Peter.
I did see quite a few changes that could be made.
I've removed the link from my post, until other people have had a go.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.