X interview question

Java problem on scheduling the twitter virtual char room