Update Triangle.java

Submission Result: Runtime Error

Last executed input:	[[-1],[2,3],[1,-1,-3]]