The purpose of problems is to push you toward obedience to God's laws, which are exact and cannot be changed. We have the free will to obey them or disobey them. Obedience will bring harmony, disobedience will bring you more problems.
Understand that most problems are a good sign. Problems indicate that progress is being made, wheels are turning, you are moving toward your goals. Beware when you have no problems. Then you've really got a problem... Problems are like landmarks of progress.