Dailyhunt interview question

string reverse in C