0

Infinite Array Anti-diagonals
Given this infinite array
0 1 2 3 4 5 6 . . .
1 0 3 4 5 6
2 3 0 5 6
3 4 5 0
4 5 6 .
5 6 .
6 .
.
.
.
and an input integer n, output the nth anti-diagonal.
Examples (zero-indexed):
5 -> [5, 5, 5, 5, 5, 5]
6 -> [6, 6, 6, 0, 6, 6, 6]
9 -> [9, 9, 9...