Fidelity Investments interview question

Agile, loops, definitions etc.