How would a loop be constructed to iterate all items of a 2D array in reverse, and diagonally? For example, iterating in that way with the following 2D array, would output the result below:
[ ['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i'], ['j', 'k', 'l'] ]
l k, i j, h, f g, e, c d, b a
The 2D array can be rectangular, not limited to square (2x2, 3x2, 2x3, etc.). How would I go about implementing a loop like that?