Question d’entretien chez Goldman Sachs

Find the bugs in these code snippets