Add solution for problem014.