Google interview question

Output a 2D Matrix diagnoally