про O(1) space, O(1) time для Max Stack: https://www.geeksforgeeks.org/find-maximum-in-a-stack-in-o1-time-and-o1-extra-space/