Move the spaces to the starting of the string in single iteration -- Microsoft