Design a stack which supports the following operations.
CustomStack(int maxSize)Initializes the object with
maxSizewhich is the maximum number of elements in the stack or do nothing if the stack reached the
void push(int x)Adds
xto the top of the stack if the stack hasn't reached the