ECI interview question

How does 3 ways handshake work?