Morningstar interview question

Design a portfolio tracking system by writing pseudo code.