Minimum Money Needed Leetcode Javascript Questions W3schools