Amazon interview question

How does TCP works?