JERA interview question

SQL question and python question