Frage im Vorstellungsgespräch bei Cognizant

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