You have tested the function with different inputs, but you found that it sometimes returns incorrect results. Analyse the code and solve the issue. NOTE : do not change the logic of the code try to fix the code with minimum changes.