Test cases for NMNMX

Can someone give me some test cases where my code fails . you can check my code here https://www.codechef.com/viewsolution/19164864 .
I got only 20 points through this.

In calculating nCr you should use MOD-1. there can be more error but this is the first one that i found in your code