Pen & Paper
Work out the solution the old-fashioned way, with a pen and paper. Have faith in me. It doesn't get any better than that. Drawing and writing large directions, steps, and stuff you'll need for your end solution are the first steps in brainstorming.
You'll waste time if you start coding right immediately since you'll need to redefine another solution or forget a case or anything.
Learn new things
Learning will broaden your horizons, which is quite beneficial. Keeping new approaches, new technology, and how a solution is executed in mind will stimulate you and provide you with ideas for solving issues effectively and intelligently.
This is the most important piece of advice I can give you! As a developer, this is also a vital trait to possess. More information may be found here:
Coding a lot
When it comes to coding, there is no such thing as good or bad code. Why? Because when you learn more, you realize that your previous code isn't up to par, so you develop a new one, and so on. Your logic muscle and coding level will be worked if you learn by coding a lot.
Junior developers sometimes shy away from difficult and demanding jobs or user stories. Whereas these are the finest moments to learn, develop important talents, and stand out.
To increase self-confidence, it's a good idea to start with simple chores. Staying in your comfort zone, on the other hand, will make you an ordinary developer rather than a distinctive one.