You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
for i, v1 in enumerate(nums):
index = i + 1
tmp = nums[index:]
for j, v2 in enumerate(tmp):
if v1 + v2 == target:
return [i, index+j]