Pregunta de entrevista de WESCO International

Sort the array without using inbuilt methods