Morgan Stanley Interview Question

calculate martingale