Tavant interview question

Algorithm for Pascal's triangle in Java