Beginner solution - Racket

Functional, man.