OneHash Interview Question

inheritance and polymorphism