Pregunta de entrevista de Adobe

Write a function that takes in n and returns the nth Pascal's triangle coefficients.