input: def split_equal_sum(arr):
      n = len(arr) 
      leftsum = 0
      rightsum = sum(arr)
      
      for i in range(n): 
          rightsum -= arr[i]
          if leftsum == rightsum:
              return True 
          leftsum += arr[i] 
      return False
  
  ### Test Cases:
  
  assert split_equal_sum([1, 2, 3, 4]) == True
  assert split_equal_sum([4, 1, 2, 3]) == True
  assert split_equal_sum([1, 2, 3, 5]) == False
  assert split_equal_sum([1, 1, 1, 1]) == True
  
output:     
      n = len(arr) 
      leftsum = 0
      rightsum = sum(arr)
      
      for i in range(n): 
          rightsum -= arr[i]
          if leftsum == rightsum:
              return True 
          leftsum += arr[i] 
      return False
  