Java Bit Manipulation Interview