Feral Interactive interview question

Make a string manipulation function in C