Marks & Spencer interview question

It was a test for sql and objected oriented python