Week- 2 Programming Assignment

I am trying to submit my assignment but it’s showing an error while all test cases are passing. It shows that the function is wrong but I rechecked many times and it is working fine for all test cases. What’s the problem?

Please do not create multiple post for the same issue?