This was a very open ended question.
Qustion based around TCP/UDP protocols.
Assume, we have constant stream of strings and order at which they should be displayed. Messages may come out of order but has to be displayed in the correct order sent with the message
Ex:
Output should be: "ACB", "RTP", "DGB"
This is continuous stream of messages that is calling function reciever.
Discuss the time and space complexity.