JavaScript is required for SkillDojo AI to work properly. Please enable JavaScript and refresh the page.
Coding Practice
Coding Challenge · BEGINNER
You are given a queue of integers and your task is to reverse the order of its elements. The queue should be modified in place without using any additional data structures. After reversing, return the queue.