Sollicitatievraag bij Camerinfolks

which algorithm would you choose for this task?