That's exactly what it is, mostly. All the functions used here work as pure functions, even though their insides might not be considered strictly pure, so I think it is considered a functional solution to the problem. 😉
The whole point of this exercise was to illustrate way of how composition trumps any kind of other code reuse, and how imperative code is actually quite hard to get a grasp of, especially if you revisit the code after a while.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That's exactly what it is, mostly. All the functions used here work as pure functions, even though their insides might not be considered strictly pure, so I think it is considered a functional solution to the problem. 😉
The whole point of this exercise was to illustrate way of how composition trumps any kind of other code reuse, and how imperative code is actually quite hard to get a grasp of, especially if you revisit the code after a while.