Watch tutorials and explanations by expert teachers that walk through solving this problem.
Math Geeks
ExtremeProgrammer
Hundred Coding
Sleepy Cracker
Samobot
CodeVia
Schoolabe
LeekCodeDev
Solve more problems to master this pattern