Microsoft interview question

They asked me to implement a stack and design a clock.