Sollicitatievraag bij Incedo

Two puzzles were asked. Stack and Queue basic