Problems in life are tools in the Holy Spirit's hands to reveal things to us we might never have otherwise considered--truth about God, about others, and especially about ourselves. If we respond to the perspective God allows us to see, we can come out the other side more mature. Remember the problem Paul had that he asked God to take away--and God said "No"? Paul saw something new: God's grace is sufficient--so much so that he began opening his arms to problems in order to experience more grace (2 Corinthians 12:7-10).
The next time you experience a problem, pray for perspective--and open your heart to embrace what God reveals.
It is good for me that I have been afflicted that I may learn Your statutes.