Morgan Stanley Interview Question

Code up a binomial tree