Create stack.c

stack function