Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCodeIO
interviewing.io
Cracking FAANG
System Design Expert
Techex
Light Of Truth
Programming Live with Larry
robzingcod
Solve more problems to master this pattern