solved problem1