Why we need to make 4 nested loops

for less than n=130 case we could do
for(ll i=0;i<n-4;i++)
{
if((arr[i]^arr[i+1]^arr[i+2]^arr[i+3])==0)
flag=1;
}
???
if not give me a test case where it got failed

Hi

it not compulsory to take number continuously. numbers taken can be random index, in single FOR loop you are considering only continues numbers.

Hit like if you get it!:stuck_out_tongue:
Cheers!:smiley: