Advent of Code 2020: Day 2 (Ruby solution)