Product's Worth Over Invoices(LeetCode 1677):

Problem