Pregunta de entrevista de SOTI

Queue based problem in coding