O2b Technologies interview question

Write stack push, pop and peek operations using class.