You have a $n \times m$ grid. In how many ways you can select $k$ nested rectangles from it?
Note: Each Rectangles should be completely inside another rectangle. They cant touch one another. Like the first one is good for $5\times 5$ grid with $k=3$, while the second one is not
I don't know anything about how to start or how to solve it. Any hint will be helpful
