One of the strategies I use to solve my task when coding is staring at the desired result intermittently. By doing this, every line of codes will be focused on achieving the desired results. Don't forget to use ChatGPT when you get stucked .