Row Sum Print Leetcode Javascript Questions