Pregunta de entrevista de Viber

implement stack with O(1) for finding the max element