i want to write an algo about stack example.. that is, ""When a person wear bangles the last bangle worn is the first one to be removed and the first bangle would be the last to be removed. This follows last in first out (LIFO) principle of stack.""
how to write it?

Please use Capital Letters. Also don't ask anyone to do your homework.

If you have any specific question, or errors you do not understand, don't hesitate to ask, I'd love to help you!

1. stack arm;
2. if (arm is empty)
push bangles
3. if (arm is full)
pop bangles
this was answer.. iv done it!