Accenture Interview Question

Python coding question on dynamic programming