Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCode
The Code Skool
Sandip Jana
Programming Live with Larry
code Explainer
Programming Live with Larry
Huifeng Guan
Java Coding Insight Interview Preparation
CodeJulian