Pregunta de entrevista de Marks & Spencer

Easy probability question 2 sql questions coding task