WA in FLIPCOIN

problem :: FLIPCOIN Problem - CodeChef
My solution:-CodeChef: Practical coding for everyone
I am trying to solve this problem using lazy propogation…Kindly locate the bug…thnx in advance…