```
int answer = 0;
for(int i = 0; i < triangle.size(); i++){
List<Integer> arr = new ArrayList<>();
arr = triangle.get(i);
//Sort the array
arr.sort((o1, o2) -> o1.compareTo(o2));
answer += arr.get(0);
}
return answer;
```

following test case is failing

Input:

[[-1],[2,3],[1,-1,-3]]

Output:

-2

Expected:

-1

lowest value is -1, 2, -3, thn how it is expected to be -1