Question d’entretien chez Google

Algorithm question about parsing and encrypting strings