I have been given the following problem:
Given an integer rowIndex, return the rowIndex row of the Pascal\'s triangle. Notice that the row index starts from 0