TalentPace interview question

Swap array row into column and column into row