Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCode
Algorithms Made Easy
Coders Camp
Timothy H Chang
Coding Decoded
Prankur Gupta
Programming Live with Larry
Peeyush K. Misra
Programming Live with Larry