Pregunta de entrevista de X

Leetcode hard, some sql questions and some probability questions