TikTok interview question

1 probability question (easy) , 1 SQL question (easy-medium), 2 python questions (medium)