AdventJS 2023 Day 6 Challenge. Solving calculate the maximum distance