Question d’entretien chez Goldman Sachs

typical leetcode questions - one linked list and one array