Arista Networks interview question

Reverse a string in C