Marks & Spencer Interview Question

SQL Query and python based questions, which are added on with extra bits