Question d’entretien chez Goldman Sachs

two leetcode questions from two people