Return the indices of the two numbers that add up to target. Four approaches, same problem — switch between them and watch how time and space trade off.