Approach hintTry it first, then revealHide
Bits above the highest position where l and r differ are shared by every number in the range. Below that position, you can always pick a and b so that every remaining bit differs.
Bits above the highest position where l and r differ are shared by every number in the range. Below that position, you can always pick a and b so that every remaining bit differs.