Solved Problem 14. Runtime ~20 seconds :/