Robot path dp--------------

how to do this problem using recursion

I`ll provide u the recursive approach in a while