Pregunta de entrevista de Microsoft

Write code to remove redundant spaces from a string in C