Cognizant interview question

basic C++ question, data structures