Add solution to euler112.