Help me with this problem! Xor profit problem

hello @Ashu1318
this will not consider all pairs.

so use two loops.

for(i=a to i=b){
for(j=a to j=b ) {
and then compute xor of i and j.
and update ur answer
}

}