Add solution to problem 11727.