Nokia interview question

Write a simple code for reversing a string in c.