Add solution to Problem 18
Add solution to Problem 19