Greytip interview question

Question was basics and maximum element in stack in O(1) complexity.