Pergunta de entrevista da empresa Tango

One technical coding question. Implement trim function in C