REPAINT RATE CHALLENGE
Todo implementation
Naive implementation
Optimized implementation