Pergunta de entrevista da empresa Cadence Design Systems

Two sum first question on leetcode