Amazon interview question

StackofPlates, Create a class StackofPlates and pop first two plates and return the StackofPlate