Row Sum Print Leetcode Problems On Graphs