give m x n matrix mat return array element array diagonal order Example 1input mat 123456789output 124753689example 2input mat 1234output 1234 Constraintsm matlengthn matilength1 m n 1041 m n 104105 matij 105