Bitwise Interview Question

Java,Sql