Question d’entretien chez Optiver

Design an algorithm to sort UDP packets