Pergunta de entrevista da empresa Online Business Systems

one coding question about sorting.