Pergunta de entrevista da empresa Samsung Electronics

Convert one string to another just by picking the character from a string and placing it in the front of the same string