submit the solution for problem1