In this Problem Constrains 0 <= A[i] <= 100000000 is given but in problem statement A[i] value may be come as negative is given. So please correct as soon as possible.
Constrains is given wrong
Hi Ritik
Thanks for reporting, the constraints are updated now 
1 Like