Exercise 2: Pineapple route emissions.

I just started and im on ex 2. This exercise looked familiar (brute force). In axo, the free coding game I'm building for kids, a solver checks every level by brute force: all 1-command programs, then all 2-command ones, until one wins. That's how we know the shortest solution and it worked until lesson 37. Boards with 10 line solutions took too long to check. The fix was to skip words that can never act on that board (no stone means no "remove"). The full check went from approx. 30 to 8 minutes and every known answer stayed the same. So pruning can keep the guarantee of the best answer.