STACK

EXAMPLE1

1
2
3
4

EXAMPLE2

1
2
3
3
3
4