def main(): arr = [-3,-2,-1,0,1,2,3] # move ptrs to middle section, j moves forward, i moves backwards j = 0 while arr[j]<0: j+=1 i=j-1 # create new array to store results ans = [] while i>=0 and j