I have run the code on my native compiler and it runs fine even with negative numbers, but here, due to abstraction of the failed test cases, it is difficult to know the issue without loosing the problem credits.
I have run the code on my native compiler and it runs fine even with negative numbers, but here, due to abstraction of the failed test cases, it is difficult to know the issue without loosing the problem credits.