Added a naive solution to Problem 2