Approach hintTry it first, then revealHide
The AND over a range keeps only the common binary prefix of left and right. Shift both right until they are equal, then shift the result back.
The AND over a range keeps only the common binary prefix of left and right. Shift both right until they are equal, then shift the result back.