We have to multiple n number if the number is negative then take it modulo 10^9+7
M getting wrong output in
Input
5
-1
-2
-3
-4
-5
Output
999999887
Explanation
Since there are only 5 number, we select all A1A2A3A4A5= -120%(10^9+7)=999999887
This is the code
Please help me to find out
