Cognizant Interview Question

Basic Sql and coding question like reverse a string