The instructions for this exercise say that we do not need to define any additional functions, and I was stuck trying to do it with this condition.
When looking at the official solution, however, I see that it uses an anonymous function.
Would you be able to clarify the instructions for this problem in future?