At Lyft, you are given an integer array and a target value. Return the indices of the two distinct elements whose sum equals the target.
Implement a function two_sum(nums, target) where:
nums is a list of integerstarget is an integer[i, j] such that nums[i] + nums[j] == targetdef two_sum(nums, target):