Dell Technologies interview question

C program to reverse a string