Learn how to use structural pattern matching (the match statement) to work recursively through tree-like structures.
Check out codegolf.stackexchange.com if you want to solve programming puzzles, but with a twist.