Cognizant interview question

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