Pregunta de entrevista de Motorola Solutions

string arrangements, code optimization and review