Texas Instruments interview question

Basic coding algorithm like sorting of arrays. PERL scripting basics.