Pseudo Sorting Algorithm | CodeChef