RBC interview question

OOP, Polymorphism, Generics and Modifier types.