Solved and added maximum subarray code.