you give array num integer k the XOR segment leave right leave right xor element index leave right inclusive numsleft XOR numsleft1 XOR XOR numsrightreturn minimum number element change array XOR segment size k equal zero Example 1input num 12030 k 1Output 3explanation Modify array 12030 00000example 2input num 345217347 k 3output 3explanation Modify array 345217347 347347347example 3input num 124125126 k 3output 3explanation Modify array 124125126 123123123 Constraints1 k numslength 20000 numsi 210