Adding solution for bit manipulation