LTIMindtree interview question

they asked polymorphism and loops