Pregunta de entrevista de Avalara

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