Bitwise Interview Question

Basic SQL