Row Sum Print Leetcode Problems On Loops