Bitwise Interview Question

Sql and Java