Incedo interview question

Two puzzles were asked. Stack and Queue basic