Pergunta de entrevista da empresa Adobe

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