### Context In mathematics, Pascal's triangle is a triangular array of the binomial coefficients that arises in probability theory, combinatorics, and algebra.  ### Task Create an algorithm that calculates a coefficient Pascal Triangle to a specific row. ### Example Input | Output -- | -- 0| `[1]` 2 | `[1, 2, 1]`