import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static long countArray(int n, int k, int x) { // Return the number of ways to fill in the array. int i,j; long count=0; int[] a=new int[n]; a[0]=1; a[n-1]=x; for(i=1;i