Find the remainder of
$\dfrac{1111\ldots111 \mspace{10mu}}{107}$ (105 ones) into 107 .
So I assumed that $1111\ldots \text{ (105 ones)}$ is going to be exactly divided by $11111 \text{ (5 ones)}$ $ 21 \text{ times}$ $(105/5 = 21)$
$11111\cdot10000100001\ldots=11111\ldots11 \text{ (105 times)}$.
Note that $$n:=\underbrace{11\ldots 1}_{105} =\frac{10^{105}-1}9.$$ $107$ is a prime so that by Little Fermat, $a^{106}\equiv 1\pmod{107}$ for all $a$ not a mutltiple of $107$. It follows that $10\cdot 10^{105}=10^{106}\equiv 1$, and hence $$10\cdot(9n+1)\equiv 1\pmod{107}.$$ You can use this to find $n\bmod{107}$ once you verify that $10\cdot 75$ and $9\cdot 12$ are $\equiv 1\pmod{107}$, so $$ n\equiv (75-1)\cdot 12\equiv 32\pmod{107}.$$