Netflix Interview Question

How to implement pascal's triangle?