Topic: Array Problem / Level: beginner

Problem: Find the number of distinct elements in the diagonal of a square 2D matrix.

Run the code to see the output here...