Output is definitely correct but the test is not passed what's wrong?