Watch tutorials and explanations by expert teachers that walk through solving this problem.
NeetCodeIO
Bradley Allen
Everyday Data Science
Everyday Data Science
CodeWithSunny
Everyday Data Science
Code with Carter
Data Science University - MLV Prasad