Solution to binomial coefficient