There are two types of mindsets we can cultivate. One that embraces problems as opportunities to learn, and one that avoids them, often out of fear to fail. Those who see problems as interesting challenges have a growth mindset.
Our brain continue to grow and develop as we get older. Here's a quick video about neuroplasticity and the brain.