Advent of Code 2017 - Day 1 - Ruby Solution