Pergunta de entrevista da empresa Rover.com

String manipulation questions, which can be done in any language.