Advent of Code 2024 - Day 12 - Part 1 - Garden Groups in Python