Recursive function to traverse the matrix Diagonally Bottom - up
def traverseMatrixDiagonally ( m , i , j , row , col ) : NEW_LINE INDENT global k1 NEW_LINE global k2 NEW_LINE global flag NEW_LINE DEDENT