Starting in the top-left corner of a 2 x 2 grid, there are 6 routes (without backtracking) to the bottom-right corner. Given n, find the number of such routes through an n x n grid.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= n <= 500
Tags: