Larsen & Toubro interview question

Reverse of String program Ascending order Program