Pregunta de entrevista de Qualcomm

Write an algorithm for a sorting method