Morningstar interview question

general questions and looking at some code