Stripe Interview Question

I had to imlement custom data structures(classes) and use that to solve the problem.