update pascal's triangle solution 2