Solved PascalsTriangleII in java