Testing stack: popping: 5 4 3 2 1 Testing queue: popping: 1 2 3 4 5