What doesn’t kill us makes us stronger.
Though no two problems are the same, each problem, each obstacle that we overcome, gives us more strength to face the next one, gives us more confidence that we will be able to overcome the next one.
It is like playing a game. The more puzzles you solve, the more monsters you kill in the game, the more experience points you gained, which gives you more powerful skills to solve the next puzzle or kill the next monster.
And yes, life is like a game.