Not accounting for any test case
@G_rahil,
a^a=a,
So, basically your answer is max(a,b,a^b), which is not correct, take example of a=6, b=10.
@G_rahil,
a^a=a,
So, basically your answer is max(a,b,a^b), which is not correct, take example of a=6, b=10.