Fish Wang says to YSITD function c(m, n) { var val = 1 for (let temp = m; temp > m - n; temp--) { val = val * temp / (temp - m + n) } return val; }