Discussion About Array Queries-I

This is Discussion thread about Array Queries-I

i am not getting what is wrong in my code

question : https://hack.codingblocks.com/app/contests/1212/p/560