Add solution for problem 36