Microsoft interview question

How would you test a stack of variable Max size?