Goldman Sachs interview question

Alghorytmic problems, operations on collections, finding elements in pascal’s triangle