Refactored arrowhead exercise to conform with rules

This sort of `if/else` construction is what leads to arrowhead code in general, and is generally unconfident. The real intent here is to get rid of `if`s entirely. See if you can find a way to do that.