Stack solution in C

Let me know if i need to comment or add/change something.