Cognizant interview question

OOPs concepts and Database Indexes