Capgemini interview question

oops question ,data structure question