Give an algorithm for reversing a queue Q. Only following
standard operations are allowed on queue. 1. enqueue(x) : Add an
item x to rear of queue. 2. dequeue() : Remove an item from front
of queue. 3. empty() : Checks if a queue is empty or not.. (Hint:
you can use LinkedList, Stacks, and Queues from the java data
collection)
OUTPUT Examples: Input : Q = [10, 20, 30, 40, 50, 60, 70, 80,
90, 100] Output :Q =...