PwC interview question

About Data structures and algorithm