https://practice.geeksforgeeks.org/problems/queue-reversal/1