Apple Interview Question

Remove spaces from a string.