Netflix interview question

How to implement pascal's triangle?