Diagonal Consistency Matrix - Coding problem | OneNoughtOne