solution problem1