Pergunta de entrevista da empresa Tech Mahindra

How will you convert three rows values into a single string using sql ?