moBack interview question

print matrix sums using for loop