About a project of processing .. I need a help

First question, they ask you to code a euclide algorithm. Have you tried that?