Pergunta de entrevista da empresa ThousandEyes

How would you code a TCP reordering proxy?