Maximum Number Of Points With Cost Leetcode Solution