Symptom
Small/indie artists with fewer than 1M monthly listeners get the popularity bonus, while major artists with more than 1M monthly listeners do not. The bonus is going to the wrong group.
What you know
The StreamRoyaltyCalculator applies a popularity bonus to artists who exceed a threshold of 1,000,000 monthly listeners. But the bonus consistently goes to small artists instead of popular ones.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code