CREATE A C PROGRAM:
Given a queue consisting of the first n natural numbers (1 to nin random order). The task is to
check whether the given queue elements can be arranged inincreasing order in another queue using
a stack. The algorithm should make one pass over the elements ofthe first queue. The operations
allowed are:
1. Push and pop elements from the stack
2. Pop (Or enqueue) from the given Queue.
3. Push (Or Dequeue) in the another Queue
4. Number equality (check if two numbers are equal)
Example queue:
4 -> 3 -> 2 -> 1 -> 5 (front of queue)
Expected output:
YES
Example queue:
4 -> 3 -> 6 ->
PayPal Gateway not configured
PayPal Gateway not configured