Update single number II

version two using bit operation