Pergunta de entrevista da empresa IMS

Explain how to you write code if you have to append strings in the logic and why do you use that