Question d’entretien chez Goldman Sachs

DSA question based on stack