Question d’entretien chez Cadence Design Systems

Two sum first question on leetcode