Cognizant Interview Question

Write program to Reverse The String?About the socket concept