Marks & Spencer interview question

Easy probability question 2 sql questions coding task