Pregunta de entrevista de Camerinfolks

which algorithm would you choose for this task?