Algo to find number of paths in a 2D grid

Dynamic Programming solution to find the num of paths in a
2D grid. Directions possible are to the right and to the
bottom