Input: mat[][] = [[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[0, 0, 0, 1]]
Output: True
Explanation: Main Diagonal = [1, 1, 1, 1], elements of main diagonal are one and all other elements are zero.
Input: mat[][] = [[6, 10, 12, 0],
[0, 5, 0, 0],
[0, 0, 9, 0],
[0, 0, 0, 1]]
Output: False
Explanation: Main Diagonal = [6, 5, 9, 1], elements of main diagonal are not one.