function solution(i, j, k) {
let count = 0;
for (let n=i; n<=j; n++) {
let arr = [...n.toString()]
for (let m=0; m<arr.length; m++) {
if (k === arr[m]*1) {
count++;
}
}
}
return count;
}
function solution(i, j, k) {
let a ='';
for(i;i<=j;i++){
a += i;
}
return a.split(k).length-1;
}
function solution(i, j, k) {
let str = Array(j - i + 1).fill(i).map((v, i) => v + i).join('')
return Array.from(str).filter(t => +t === k).length;
}
function solution(i, j, k) {
return Array(j-i+1).fill(i).map((v,i)=>v+i).join('').split(k).length-1;
}