DXC Technology Interview Question

Reverse of a string program