class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:
        
        for i in range(len(nums)-1,-1,-1):
            for j in range(len(nums)-1,i,-1):
                if nums[i]+nums[j] == target:
                    a=i
                    b=j
                    break                 
   
        return(a,b)

        