UBS Interview Question

relevant question about binomial tree