Watch tutorials and explanations by expert teachers that walk through solving this problem.
Greg Hogg
Everyday Data Science
Elite Code
Algorithms Casts
Hanu
Data Science University - MLV Prasad
Sleepy Cracker
Solve more problems to master this pattern