Minimum Money Needed Leetcode Problems Sql