Problem 8 getting wrong answer