Given an index k, return the kth row of the Pascal's triangle.

use only O(k) extra space