Watch tutorials and explanations by expert teachers that walk through solving this problem.
Light Of Truth
Techdose
Cracking FAANG
Daniel S Seo
IB
cstutorials
Raymond Chen
Sleepy Cracker
EduEverybody
Solve more problems to master this pattern