Diagonal Traversal Of Matrix Hackerrank Solution