WA in MARBLES

I am getting WA in marbles. I have used the approach of (n-1)C(k-1).Here is my solution https://www.codechef.com/viewsolution/18903165