Java Bit Manipulation Practice Problems