How to create Pascal’s Triangle in swift

[Link] In Pascal’s triangle, each element is the sum of the two numbers directly above it.