Razorpay interview question

Q. Stack implementation and then return highest number in O(1) complexity