Cake Solutions interview question

Scala pattern matching