Function multinomial

pub fn multinomial<T>(k: &[T]) -> T
where
    for<'a> T: Add<&'a T, Output = T> + Integer + Clone,

Calculate the multinomial coefficient.