Condition when to traverse Bottom Diagonal of the matrix
if ( flag ) { let a = k1 ; k1 = k2 ; k2 = a ; flag = ! flag ; k1 ++ ; } else { let a = k1 ; k1 = k2 ; k2 = a ; flag = ! flag ; } document . write ( " " ) ; return false ; }