Hello all,

I just want to make sure if my answer to this question is right or no. If no please help me solve it. Thanks in advance.

Here is the problem:

What is the output of the following psuedocode

```
num1 = 5
num2 = 1
num3 = 4
aQueue.enqueue(num2)
aQueue.enqueue(num3)
aQueue.dequeue()
aQueue.enqueue(num1 - num2)
aQueue.dequeue(num1)
aQueue.dequeue(num2)
cout << num2 << " " << num1 << " " << num3 << end1
```

My answer is: `5 1`