You are given a grid with m rows and n columns.
Your task is to calculate the total number of unique paths to reach the bottom-right corner of the grid.
Note that:
Return the total number of unique paths.
m = 1
n = 1
1
There is only one cell in the grid, so there is only one unique path.
m = 2
n = 2
2
There are two unique paths:
m = 2
n = 3
3
The unique paths are
m = 1
n = 1
1