I assume you are aware that your code is faulty, because e.g. row [A0,B2,C0] occurs at least twice in your output.
It is also a really bad idea to test with square arrays. Here's a scalable solution that works with any possible array dimensions (until you run out of memory, of course).
Note: If you want to cycle the leftmost element fastest, use two inner FOR loops. First create the array of indices then reverse the blue array before autoindexing on the loop where you index out the elements)