Pergunta de entrevista da empresa Microworld Technologies

Perform number and string swapping using different method and tell me which process is faster?