PERMUT2 : Why is a solution showing 0 memory?

For the PERMUT2 problem, this solution shows 0M, whereas my solution has 2.5M.
How come? Both the solutions have same logic.

2 Likes