LTM Limited Interview Question

sorting an array , pattern printing questions