Add SumsInATriangle solution in java