Goodwill interview question

About data structures and algorithms