advent_of_code_day_6 Part 1 Shitty Solution Space complexity: O(N×M) Time complexity: O(N×M) where N and M are the dimensions of the grid Link