Question d’entretien chez Tatari

How did you implement the algorithm in the assignment?