The grid is square. Return the total of the items running from the top left to the bottom right — positions [0][0], [1][1] and so on.
int diagonal(int[][] grid)
Examples
There are also 2 hidden tests you can't see. Solve the problem, not the examples.