Walmart interview question

Zombie problem using DFS Java