Array Queries Solution

Hey could you please tell me where i’m getting wrong

see this code to understand lazy propagation better: