LTIMindtree interview question

sorting an array , pattern printing questions