solve the pascal triangle problem.