Examples:
const q = new Queue();
q.add(1);
q.add(2);
q.peek(); // returns 1
q.remove(); // returns 1
q.remove(); // returns 2
const Stack = require('./stack'); class Queue { constructor() { this.stackOne = new Stack(); this.stackTwo = new Stack(); } add(el) { while (this.stackOne.peek()) { this.stackTwo.push(this.stackOne.pop()); } this.stackOne.push(el); while (this.stackTwo.peek()) { this.stackOne.push(this.stackTwo.pop()); } } remove() { return this.stackOne.pop(); } peek() { return this.stackOne.peek(); } }