Watch tutorials and explanations by expert teachers that walk through solving this problem.
luckyleeds
Raymond Chen
ProblematiCode
Shally Jindal
Chethan
road to enlightenment
Solve more problems to master this pattern