Add solution for problem010.