← Home
For problem statement at 0-999/800-899/840-849/841/problemA.txt this is a correct solution, but verifier at 0-999/800-899/840-849/841/verifierA.go ends with All 100 tests passed. can you fix the verifier? ```go
package main

import "fmt"

func main() {
	var n, k int
	fmt.Scan(&n, &k)
	var s string
	fmt.Scan(&s)
	counts := make([]int, 256)
	for i := 0; i < len(s); i++ {
		counts[s[i]]++
		if counts[s[i]] > k {
			fmt.Println("NO")
			return
		}
	}
	fmt.Println("YES")
}
```