L-attributed definition: it can synthesized or inherited type.
Synthesized: An attribute can take values from its children.
Inherited: an attribute can take values from its siblings.
But, the condition is inherited attribute can take values only from the parent or left sibling. Strictly not from right sibling
In Rule1: all are following conditions of L-attributed grammer.
In Rule2: X.i = A.i + Y.s ( given production is A-->XY )
An attriubte is taking values from its right sibling. Therefore not L-attributed.
Therefore Ans : (B)