Consider the XOR-operation, or $\hat{\lor}$, given over the following truth table for two binary variables:
$$\begin{array}{|c|c|c|c|}
\hline
p& q& p\hat{\lor}q\\ \hline
0& 0& 0\\ \hline
0& 1& 1\\ \hline
1& 0& 1\\ \hline
1& 1& 0\\ \hline
\end{array}$$
You may generalize this operations for strings bit-wise. Can you apply this operation here? How would you set or reset a bit in a string? Play around with this a little(seriously, this is the key to getting an intuition) before you check the hint:
1. $10000010$ 2. $00100100$
EDIT: Since you've seen my answer, I want to add something regarding the answer of Stanley F., which I did not want to talk about before to not "spoil the surprise":
You may of course approach this problem with almost any classical binary operation(or at least with every set which is functionally complete). However, the advantage of using the exclusive or is of course that
- It applies to setting and removing bits.
- The to-be-modified bits correspond in their position to the set-ones in the corresponding string.