Morningstar interview question

Code planning, data structures, problem solving