Transpose function if condition

in 6:09 minute why does sir do swapping only in cas of
if(i<j) what about the other case below the diagnol?

hello @sushantshukla92
if we dont use that condition then we will get the same matrix.

do a dry run on some small matrix .