Flip Bits(LintCode 181):

Problem