Sort the Matrix Diagonally

Sort the Matrix Diagonally - Coding Problem | K5kC