Javascript function to calculate the number of ways to achieve sum x in n no of throws
const mod = 1000000007 ; let dp = new Array ( 55 ) ; for ( let i = 0 ; i < 55 ; i ++ ) dp [ i ] = new Array ( 55 ) . fill ( - 1 ) ;