Domanda di colloquio di Tatari

How did you implement the algorithm in the assignment?