X Interview Question

Leetcode hard, some sql questions and some probability questions