Domanda di colloquio di Avalara

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