Topic: Array Problem / Level: beginner

Problem: Check if a 2D array is an identity matrix (diagonal elements are 1 and all other elements are 0).

Run the code to see the output here...