Pregunta de entrevista de Sigma Conso

How you approach to this problem