L-Deque ATCODER DP PROBLEM

Why third dimension is not needed?? I didn’t understand.

@Bhawna,
Let’s reverse engineer it. Why do you think it’s needed?