Solved problem1