Thomson Reuters interview question

Describe dynamic programming in python