https://leetcode.com/problems/pascals-triangle/description/
經指正: 轉型是O(n),不是O(1)。
reversed只要O(1),而reverse則是O(n)。
insert(_:at:)的時間複雜度是O(n)