class Stack {
public:
bool is_empty() {
return s_top == -1;
}
void push(int element) {
s_top++;
arr[s_top] = element;
}
int pop() {
s_top--;
return arr[s_top + 1];
}
private:
int s_top = -1;
vector<int> arr(10);
};