Solving EGOI 2025 day 2 problems (finished)