Row Sum Print Leetcode Python