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