IDFC FIRST Bank interview question

reversing a string in python and employee, manager self join SQL question