Add solution for problem009.