added a solution to the second pascals triangle problem