Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCode
NeetCodeIO
NeetCodeIO
Algorithms Made Easy
Code with Alisha
Happy Coding
Cracking FAANG
Ritambhara Coding and System Design Interviews
Timothy H Chang