Given an array of integers nums and an integer target, return the indices of the two distinct elements whose values add up to target.
You may assume there is exactly one valid answer, and you may not use the same element twice. Return the two indices in any order.
nums: a list of integerstarget: an integerdef two_sum(nums, target):