Cognizant interview question

Creating Custom Exceptions, Inheritance with exception handling