advent of code day 6 basically screaming "just bruteforce me, here look in the input dataset is tiny"... I tried to get fancy with math anyways, but realized that idk math.