Pergunta de entrevista da empresa Amazon

Two sum, same as no.1 on leetcode