How to find sum of elements of a stack in Data Structure using c? can anyone please explain with the help of example