Sum Triangle From Array Leetcode Problems Sql