Pergunta de entrevista da empresa Cadence Design Systems

2 problem ,LRU, DP1. not very easy.