LTM Limited Interview Question

Print array in sorted order