Google Interview Question

Algorithm question about parsing and encrypting strings