Why i am getting wrong answer

please check the code range xor problem

@dkroy8790
hey you had a minor issue .check your corrected code