TSS Consultancy interview question

they asked me to write diffrent type of dsa and oop code ex :- Write a code for runtime polymerphism