Algorithm · Stripe · Medium
Given a string that contains payment information along with invoice records, create a program that performs the tasks below: Accept a comma-delimited input string containing a single payment record and several invoice records. First, locate the invoice associated with the payment and print that invoice's information. Next, identify an invoice whose amount exactly equals the payment amount and whose due date is closest, then print that invoice's information. Finally, support…
Checking your access…