Given an array of integers and a target sum, return the indices of the two numbers that add up to the target sum.
A.I. Evaluation of the Solution
The candidate's solution is correct and demonstrates a level of completeness. The candidate has correctly identified the problem and has provided a solution that solves the problem. The candidate's approach is general and could be applied to similar problems.