Add solution to the problem 1