Cognizant interview question

Data Structure Algorithm