Pregunta de entrevista de Neudesic

Sorting array in javascript without in-built methods