Talentio interview question

2) D/w stack and queue