Input: [[-1],[2,3],[1,-1,-3]]

Output: -2

Expected: -1

So, I have a problem with the output. My output is -2 and its expected -1.

However, if I look at the input, the sum is -1 + 2 + -3 = -2.

```
public class Solution {
public int minimumTotal(ArrayList<ArrayList<Integer>> triangle) {
int sum = 0;
for (ArrayList<Integer> row : triangle) {
sum += Collections.min(row);
}
return sum;
}
```

}