Morningstar Interview Question

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