classSolution:deftwoSum(self,numbers: List[int],target:int) -> List[int]: left =0 right =len(numbers)-1while left < right: total = numbers[left]+ numbers[right]if total == target:return [left +1, right +1]elif total < target: left +=1elif total > target: right -=1return [-1,-1]