How to solve Unique path problem

How to solve Unique path problem

Dynamic programming approach.