For this Question: After sitting idle in home for around 2 months, Jiraya has finally come up with a super interesting problem on arrays (or maybe!). 
You are given an array A of N integers. You need to choose an index i from 1 to N (inclusive) and divide this array into 2 parts, then find the maximum sum of contiguous subarray in both the parts of arrays and add the obtained values from the two arrays. 
What is the maximum sum that you can obtain?

Note: The element at index i is not a part of any of the generated arrays, choosing an empty subarray is allowed, one of the generated array is empty if i=1 or i=N (its maximum subarray sum will be 0).

See sample for better understanding.The first line of input contains a single integer N.
The second line of input contains N integers A[1], A[2],. , A[N]

Constraints
2 <= N <= 200000
-1000000 <= A[i] <= 1000000Output a single integer, the answer to the above problem.
(The answer may not fit into integer data type)Sample Input
6
-5 -1 4 -3 5 -4

Sample Output
9

Explanation: We choose i = 4. The two arrays are [-5, -1, 4] and [5, -4]. The maximum sum of contiguous subarrays are 4 and 5 respectively. Therefore, the answer is 4 + 5 = 9.

Sample Input
5
-1 -1 -1 -1 -1

Sample Output
0

Explanation: We choose i = 3. The two arrays are [-1, -1] and [-1, -1]. The maximum sum of contiguous subarrays are 0 and 0 respectively (empty subarrays). Therefore, the answer is 0 + 0 = 0., I have written this Solution Code: n=int(input())
l=list(map(int,input().split()))
left=[]
for i in range(n):
	left.append(0)
curr_max=l[0]
max_so_far=l[0]
for i in range(1,n):
	left[i]=max_so_far
	curr_max = max(l[i], curr_max+l[i])
	max_so_far = max(max_so_far, curr_max)
right=[]
for i in range(n):
	right.append(0)
curr_max=l[n-1]
max_so_far=l[n-1]
for i in range(n-2,-1,-1):
	right[i]=max_so_far
	curr_max = max(l[i], curr_max+l[i])
	max_so_far = max(max_so_far, curr_max)
ans=0
for i in range(n):
	ans=max(ans,left[i]+right[i])
print(ans), In this Programming Language: Python, Now tell me if this Code is compilable or not?