how its in constant time imean its o(n)
Min in stack in const time
But at any moment you are popping out the minimum element from the current stack in O(1) and that actually was the aim.
can you tell me any place where it is useful
It is just an implementation question commonly asked in interviews.