Solved pascal triangle problem.