Shri ram and arrows


failing 2 test cases
not able to find error
please help

Consider a test case:
4
-2 -2 1 -2

Expected O/p:
-2 -2 -2

Your O/p:
-2 -2

Solved , thanks a lot :slight_smile: