Frage im Vorstellungsgespräch bei Avalara

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