Morgan Stanley interview question

all questions on pointers wer difficult