TSORT: TIME LIMIT EXCEEDED ERROR

HOW TO MAKE MY CODE EFFICIENT. MY CODE’S LINK IS: https://www.codechef.com/viewsolution/20430303

Use STL sort.