Watch tutorials and explanations by expert teachers that walk through solving this problem.
Fraz
GoodTecher
Code with Carter
Persistent Programmer
TheAnalyticGuy
Programming Live with Larry
50ShadesofDSA
DataHead Girl
Solve more problems to master this pattern