Bitwise interview question

all about java, sql.