Pregunta de entrevista de ThousandEyes

How would you code a TCP reordering proxy?