Pergunta de entrevista da empresa Avalara

given an array return the index for the target sum. Two sum problem.