Planning with O1 - where is the reasoning in this example?

I struggle to understand where reasoning is used in the “planning with o1” example. Couldn’t the same logic be implemented using normal deterministic programming?