Wabtec interview question

Write a program to send string data from one thread to another.