Simple, remove the spaces from the string, then return the resultant string.
~~~if:c
For C, you must return a new dynamically allocated string.
~~~
def no_space(x):
    secondary = list()
    for i in x:
        if i != ' ':
            secondary.append(i)
            
    return ''.join(secondary)
def no_space(x):
    secondary = list()
    for i in x:
        if i != ' ':
            secondary.append(i)
            
    return ''.join(secondary)