Cognizant Interview Question

Reverse the string in python and a query abt joins in sql