Advent of Code 2020: Day 6 (Ruby solution)