Added faster solution to Problem 3