Square Matrix Diagonal Count

+2
PY
py
OUTPUT