LTM Limited interview question

they asked polymorphism and loops