pascals triangle solution.