ServiceNow interview question

Implement stack using queue in java.