Watch tutorials and explanations by expert teachers that walk through solving this problem.
Prakhar Agrawal
Programming Live with Larry
Algorithms Casts
StatLearn Tech
Let us code
Code-Yao
Progression School
CodeTime
Solve more problems to master this pattern