Dynamic programming example
>