Microsoft interview question

a problem that required using a stack