Nokia Interview Question

Write a simple code for reversing a string in c.