Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCodeIO
Techdose
codingMohan
Programming Live with Larry
StatLearn Tech
Programming Live with Larry
Decipher Algorithms with Saptarshi
Jordan the CS
Alpha-Code