Topic: Array Problem / Level: beginner

Problem: Check if a given matrix is a unit matrix (all diagonal elements are 1 and all off-diagonal elements are 0).

Run the code to see the output here...