AVASOFT interview question

Asked from SQL AND PYTHON