Deloitte interview question

DSA Problems on Stack and Queue