Dell Technologies interview question

How to find all empty nodes in stack