Day 7(part2) of this year’s content brought an interesting problem. Many peoples’ solution just worked, but many (including me) had no idea why it worked. This is my attempt to solve that mystery.