Add solution to Problem 21
Add solution to Problem 22