Reddit interview question

Design a TCP server that can read and write data