Advent of Code 2020: Day 3 (Ruby solution)