TD interview question

Basics for Python and SQL