LTIMindtree Interview Question

they asked polymorphism and loops