function factorial(n) { if (n === 1) { return n; } return n * factorial(n-1); } module.exports = (trick, treat) => { return factorial(trick | treat); };