Bitwise interview question

SQL Theory and SQL Coding