Cognizant interview question

OOP in java, SOLID principle