Pregunta de entrevista de Tech Mahindra

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