Tough TCP interview question on C++ with sockets and network

TCP ,nterview question, C++ ,sockets , network