Morgan Stanley interview question

calculate martingale