LTIMindtree Interview Question

sorting an array , pattern printing questions