How to solve a LeetCode problem as a beginner (Step by step)