Stackup Solution interview question

Most repeated element in each row of 2d array