Bitwise Interview Question

Unique keys, Java