LogicMonitor interview question

Reverse Queue, Multi threading in java