Update Bits(LintCode 179):

Problem