Pregunta de entrevista de Technicolor

Write a program to enter these no in queue and print them