Applied Materials interview question

Tracking current Maximum Element in a Stack in Time Complexity : O(1)