using System.Collections;
Stack stc1 = new Stack();
Stack stc2 = new Stack();
public void Enqueue(int item)
Console.WriteLine("Overflowed");
Console.WriteLine(el[front]);
public static void Main()
int[] arr = new int[]{1, 2, 1, 3, 2, 1, 4, 2};
Queue obj = new Queue(arr.Length);
for (int i = 0; i < arr.Length; i++)
if (arr[i] == 1 && i != arr.Length - 1)