Voysis interview question

how would you implement stack and queue