My solution seems to return and print the correct number regardless of test case, yet it still fails testing.