Watch tutorials and explanations by expert teachers that walk through solving this problem.
Alpha-Code
Cyber Spartan
codegrind
ThinkOutsideTheBox
Progmatic
CodeForTopMNC's
The Leetcode Grind
CodeTube
Solve more problems to master this pattern