https://ide.codingblocks.com/s/387576 what i did was generated a csum subarray and then divided each element with the number of elements in array and then the number which got divided were added in the final answer
Only one test case passing
for test case:
1
5
-1 -3 -2 -6 -4
output:
3