Answer
Please see the work below.
Work Step by Step
We know that the bits of paper are attracted due to the polarization effect. When they touch the comb, the polarization effect disappears and the bits of paper receive the same charge as the comb due to which the repulsion occurs.