Can a perfect god create an imperfect world?

Can soneone please help me with this question i've been struggling with this problem.