Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCode
Greg Hogg
Algo Engine
NeetCodeIO
Coding Techniques with Komal | Newton School
Programming Live with Larry
Prakhar Agrawal
Sleepy Cracker
Timothy Lee Grant