Data Link, Framing, Error Control & ARQ

Your answer
Answer & solution
Official answer: B
Step 1: To prevent payload data from imitating the flag, the transmitter inserts a zero after every run of five consecutive ones. The receiver removes only that inserted zero. Step 2: Parse the given output as 0,11111,0(stuffed),0101. Removing the marked zero leaves 0,11111,0101=0111110101. Step 3: That is B. The zero immediately following the inserted zero belongs to the original payload and must not also be removed.