Advent Of Code Day 8 Walkthrough & Time Complexity