I have tested with multiple test cases, both positive and negative, its giving correct answers only. Then why shows as test case failed?
Also in the solution, the method used is using max function, I have used compare. Max function is not yet taken in the lectures till this point. Then why is that the only correct solution?