Pregunta de entrevista de PTC

Array sorting algorithm and then asked to program.