ThousandEyes Interview Question

How would you code a TCP reordering proxy?