Sum Of Upper And Lower Triangles Leetcode