QUEUE ARRAY CODE:
OUTPUT: