hi,
i think you are over-reading the term "validate."
i think it means: run the code you have above and "check that it gives the right answer."
you do not have to subscribe to HWS+ to follow the 100 days of SwiftUI course ... it is completely free ... and there is no pressure to subscribe to anything while you're doing that.
if you do choose to subscribe to HWS+ in the future, you will find that there are answers posted to many of the challenges and checkpoints throughout the course; but that may not be the real value of a subscription. indeed, the real value in HWS+ comes once you want to go deeper and farther, with a real highlight being building the Ultimate Portfolio app that goes 50 sessions or more.
(i'm currently not active in HWS+, but i've been in and out over maybe 8 months or so ... when i reactivate my subscription mostly depends on when i have time to make the best use of it, when not involved in other projects i am working on. but i highly recommend HWS+ when you've completed a majority of the 100 days. i only regret not getting in on HWS++ ... sorry, i could not resist the inside joke reference.)
BTW: your code looks fine.
hope that helps,
DMG