export function solution(t: string, p: string): number {
let answer = 0;
const threshold = parseInt(p);
for (let i = 0; i <= t.length - p.length; i++) {
const currentNum = parseInt(t.substring(i, i + p.length));
if (currentNum <= threshold) {
answer += 1;
}
}
return answer;
}