Watch tutorials and explanations by expert teachers that walk through solving this problem.
Happy Coding
hakunamatasq
DeepCodes
Programming Live with Larry
Algorithms Casts
Elite Code
Code with Carter
Think-Twice-Code-Once
Solve more problems to master this pattern