Add solution for problem007.