Its showing wrong answer even though my code is running successfully on ide compiler without any errors.What should I do now?
Expand your test cases. Test the maximum values, test the minimum values etc and consider any corner cases you haven’t yet tested.