Walmart Global Tech interview question

Stack & queue implementation in javascript