import java.util.*; import java.io.*; import java.awt.geom.*; import java.math.*; public class No265 { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static void solve() { int n = in.nextInt(); int d = in.nextInt(); String s = in.next(); int[] a = new int[d+1]; calc(a,s.toCharArray()); for (int i=0; i