Advent of Code 2023 Python - Day 12: Hot Springs