Ladder 1 problem

Please explain by taking one more test case.

Let’s say you have
5 3
0 1 0 0 0

Now the possible ways are 3.
[1->3->5]
[1->3->4->5]
[1->4->5]

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.