Code not working for question "Playing with bits" in bitmasmking