ByteDance interview question

Case studies and SQL code