Solved PascalsTriangle in java