#include #include #include #include #include #include #include long int countArray(int n, int k, int x) { // Return the number of ways to fill in the array. long int ways=1; for(int i=0;i