Question d’entretien chez Goldman Sachs

Dictionary finding on a string. Easy-medium level