Progressive tax is the textbook example of a reduce . Walk the slabs, tax each band at its rate, sum it up. Twelve lines, done.
Source: [Dev.to](https://dev.to/monu_kumar/the-1-that-costs-62400-modelling-indias-tax-slabs-without-cliff-edge-bugs-5fgm)