Pregunta de entrevista de University of Leicester

How would you solve X problem in R