Applications of Bit Manipulation Solution