educative.io

Can the challenge be visualized better?

The challenge says

Can we improve our bottom-up DP solution even further? Can you find an algorithm that has O(S) space complexity?

I am having hard time understanding why this would work.

Cheers