Rivian interview question

Two sum array get sum to target