ByteDance Interview Question

How does a three-way handshake works?