Quote:
I have tried using stack to store all deleted items while deleting but dont know is it right approach or not
You can experimentally establish that: check your results against the original list.
(Or post here your code, otherwise the question makes poor sense).