Maximum Sum Path Leetcode Problems Sqlite Database