Cisco interview question

print nxn array content in diagonal manner