Pregunta de entrevista de Synopsys

How would you approach this problem?