Pergunta de entrevista da empresa Synopsys

How would you approach this problem?