Morgan Stanley interview question

How does a compiler work