UBS interview question

relevant question about binomial tree