Pregunta de entrevista de Optiver

Design an algorithm to sort UDP packets