Dell Technologies Interview Question

How to find all empty nodes in stack