Write up your own Matlab program to do the job described by https://www.avatar.se/molbioinfo2001/dynprog/adv_dynamic.html
Show a few examples, your code does work. You will have to submit your code written by Matlab or other languages to generate exactly the same result as described in the website.