C # implementation of the approach
using System ; using System . Collections . Generic ; using System . Linq ; class GFG { static int mod = 1000000007 ; static int RUNMAX = 300 ; static int BALLMAX = 50 ; static int WICKETMAX = 10 ;