MobiTrail interview question

Python basic list, conditional statement, SQL queries