I have a maxArray list that is controlled by an if statement saying if the sum of the current stack is greater than the maxSum to then update the maxArray to return, the maxSum