Given a list nums and a target, return the indices [i, j] (with i < j) of the two numbers that add up to target. Exactly one solution exists. Aim for O(n).
nums
target
[i, j]
i < j