Pregunta de entrevista de Mistplay

Q: How would you go about implementing this?