My code is correct, still it isn't running


Please someone tell me what the mistake is?

It just compares your result with the true result which is in the test function. And show you that your result not the same as the true result