you ve get array consist n integer a1a2an you allow perform operation array Calculate sum current array element segment lr count value alal1ar Apply xor operation give number x array element segment lr execute this operation change exactly rl1 array element expression mean apply bitwise xor operation number x y the give operation exist modern programming language example language C Java mark Pascal xorYouve get list m operation indicate type your task perform give operation sum query print result