Topic: Array Problem / Level: beginner

Problem: Check if a given matrix is diagonal (all non-diagonal elements are zero).

Run the code to see the output here...