Morningstar interview question

how i would change the code when certain requirement in the programming assignment changes.