There are three numbers in the 1000's that thave three 1's.
1011
1101
1110
There are three numbers in the 2000's that thave three 2's.
2022
2202
2220
And so on ...
Since threre are nine lots of x000, x = 1 to 9, then there are nine lots of three identical digit sequences.
Answer: 27