Pregunta de entrevista de Bloomberg

String manipulation and game-based questions.