In this one- 2nd operation mai [6+9, 3+6,5+3...] hoga right>? and not the one given in the explaination of the question please resolve this doubt asa

After the 1st operation (X = 1), the array would be [1+5, 2+1, 3+2, 4+3, 5+4] =[6, 3, 5, 7, 9]
After 2nd operation (X = 0), the array would be [6+6, 3+3, 5+5, 7+7, 9+9] =[12, 6, 10, 14, 18]
Thus the correct answer would equal to = (12+6+10+14+18) % (10^9+7) = 60

in this one- 2nd operation mai [6+9, 3+6,5+3…] hoga right>? and not the one given in the explaination of the question please resolve this doubt asa

NO
given explanation is correct

in question it is given that
every element of the cyclic array would be replaced by the sum of itself and the element lying X positions behind it in the cyclic array.

if x ==1 -> 1 position behind
if x==0 -> same element will be added

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.