pascal's triangle solution