Watch tutorials and explanations by expert teachers that walk through solving this problem.
Mushu
Coding Interviews
Programming Live with Larry
JSer
Math Geeks
Tim Huang
Ozone Project
LetsCode
VitoWorld
Solve more problems to master this pattern