Pregunta de entrevista de Cognizant

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