Split With Minimum Sum Leetcode Sql