Bitwise Interview Question

Join query