Intuit Interview Question

Calculating tax