Practice is the key for this purpose, so try to solve coding problems on platforms like LeetCode, W3 Schools, HackerRank or CodeSignal. Additionally working on real-world projects & collaborating with others can help improve your problem-solving abilities.