Advent of Code 2020: Day 5 (Ruby solution)