Nationwide interview question

Annuity based question based around programming