Delimiter flag: 0111
Data sequence: 01110110
So, for a flag of 4 bits we will compare data sequence with pattern of 3 bits i.e. 011. Data sequence : 0 1 1 1 0 1 1 0
The underlined bits are found matched, hence, 0 is stuffed.
Thus resulting in the data sequence as 0110101100 which is option (d).
Data sequence: 01110110
So, for a flag of 4 bits we will compare data sequence with pattern of 3 bits i.e. 011. Data sequence : 0 1 1 1 0 1 1 0
The underlined bits are found matched, hence, 0 is stuffed.
Thus resulting in the data sequence as 0110101100 which is option (d).

