Question d’entretien chez Microsoft

Please implement an inquery and and outquery using an array using fifo.