LTIMindtree interview question

star pattern coding and linked-list program