Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Note that both lowLimit and highLimit are of small constraints so you can iterate on all nubmer between them
You can simulate the boxes by counting for each box the number of balls with digit sum equal to that box number