Publix interview question

Data Structures and Object Oriented Program theory