In an m x n grid, moving only right or down, count all distinct paths from the top-left cell to the bottom-right cell. The input is JSON {m, n}.
Input: JSON {m, n}.
Output: Integer — the number of distinct paths.
Input: {"m":3,"n":3}
Output: 6
Explanation: Six monotone paths.Input: {"m":2,"n":2}
Output: 2
Explanation: Two paths.Input: {"m":1,"n":5}
Output: 1
Explanation: Only one straight path.1<=m,n<=100