LTM Limited interview question

stack vs queue difference and primary key