Given the string "sort this string", write a function to sort all the characters in ascending order without using any built-in sorting functions. The output should exclude spaces from the original string.
Step 1: The interviewer specifically mentioned not to use any predefined functions in the solution.
Step 2: Initially, I solved the problem using a for loop to create an array of characters (excluding spaces) and then applied the sort() method to sort the array.
Step 3: However, the interviewer was not satisfied with the use of the sort() function, as it is a predefined method.
Due to limited time, I couldn't think of an alternative approach on the spot and missed the chance to implement a manual sorting technique like bubble sort.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which keyword is used for inheritance?