Add the solution for problem 050.