Bitwise interview question

Unique keys, Java