Druid Software interview question

Create a program that sends a TCP message to another program. The other program will receive it and send it back. Monitor that it is working using some kind of tool.