Scriplogix interview question

Program in Python and write queries in mysql