IBS Software interview question

covariant return type