Sum Triangle From Array Leetcode Problems Sqlite