Accenture interview question

data structures and problem solving