Added Solution for problem 21.