Pergunta de entrevista da empresa Publicis Sapient

Question based on string in programming.