Intuit Interview Question

Coding exercise to be resolved in 40 minutes.