WA in MARBLES

I am getting WA in marbles. I have used the approach of (n-1)C(k-1).Here is my solution CodeChef: Practical coding for everyone