Pregunta de entrevista de Yamaha

Sorting and concatenation without inbuilt functions