Watch tutorials and explanations by expert teachers that walk through solving this problem.
Programming Live with Larry
Thought Experiments
CoderCreek
Unfolding Code.
hakunamatasq
HelloCoders
CodesStruct
小孩快跑
CodeLink
Solve more problems to master this pattern