Bloomberg interview question

write a function to calculate arbitrary row/column values in pascal's triangle