Morgan Stanley interview question

Code up a binomial tree